home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / circuits / irsim-9.000 / irsim-9 / src / include / defs.h < prev    next >
C/C++ Source or Header  |  1993-01-15  |  1KB  |  52 lines

  1. /* 
  2.  *     ********************************************************************* 
  3.  *     * Copyright (C) 1988, 1990 Stanford University.                     * 
  4.  *     * Permission to use, copy, modify, and distribute this              * 
  5.  *     * software and its documentation for any purpose and without        * 
  6.  *     * fee is hereby granted, provided that the above copyright          * 
  7.  *     * notice appear in all copies.  Stanford University                 * 
  8.  *     * makes no representations about the suitability of this            * 
  9.  *     * software for any purpose.  It is provided "as is" without         * 
  10.  *     * express or implied warranty.  Export of this software outside     * 
  11.  *     * of the United States of America may require an export license.    * 
  12.  *     ********************************************************************* 
  13.  */
  14.  
  15.     /* Global definitions used by all modules */
  16.  
  17. #define    or    ||
  18. #define    and    &&
  19. #define    not    !
  20.  
  21. #define    private    static
  22. #define    public
  23.  
  24. extern    int    atoi();
  25. extern    void    exit();
  26. extern    char    *strcpy(), *strcat();
  27.  
  28. #ifdef host_mips
  29. extern    double    atof(char *);
  30. #else
  31. extern    double    atof();
  32. #endif
  33.  
  34. #define SWAP( TYPE, A, B )        \
  35.   {                    \
  36.     register TYPE TMP;            \
  37.                     \
  38.     TMP = (A);                \
  39.     (A) = (B);                \
  40.     (B) = TMP;                \
  41.   }                    \
  42.  
  43.  
  44. #ifdef SYS_V
  45. #    define    bcopy( A, B, C )    memcpy( B, A, C )
  46. #    define    bcmp( A, B, C )        memcmp( B, A, C )
  47. extern    void    memcopy();
  48. #else
  49. extern    void    bcopy();
  50. #endif
  51.  
  52.